package com.cloud.demo.login.bean.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 类说明
 *
 * @author szj
 * @date 2021/7/28
 */
@Data
@ApiModel(value = "QueryAllAccountDTO", description = "查询所有账号参数")
public class QueryAllAccountDTO {
    @NotNull(message = "pageNo不能为null")
    @Min(value = 1, message = "pageNo的值不能小于1")
    @ApiModelProperty(value = "页码", required = true)
    private Integer pageNo;
    @NotNull(message = "pageSize不能为null")
    @Min(value = 1, message = "pageSize的值不能小于1")
    @Max(value = 100, message = "pageSize的值不能大于100")
    @ApiModelProperty(value = "页大小", required = true)
    private Integer pageSize;
}
